package net.shop.biz.vo;

import net.shop.common.SystemConstants;
import net.shop.common.SystemSettingUtil;
import net.shop.dal.entity.Product;

public class ProductVo extends BaseVo<Product> {
	
	private String linkUrl;
	private String picUrl;
		
	@Override
	public Product getEntity() {
		return this.entity;
	}

	public String getLinkUrl() {
		return linkUrl;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public String getSmallImgUrl() {
		return SystemSettingUtil.getSystemSetting().getProductPicHost() + SystemConstants.SMALL_SIZE_PATH + picUrl;
	}

	public String getListImgUrl() {
		return SystemSettingUtil.getSystemSetting().getProductPicHost() + SystemConstants.LIST_SIZE_PATH + picUrl;
	}

	public String getGridImgUrl() {
		return SystemSettingUtil.getSystemSetting().getProductPicHost() + SystemConstants.GRID_SIZE_PATH + picUrl;
	}

	public String getGalleryImgUrl() {
		return SystemSettingUtil.getSystemSetting().getProductPicHost() + SystemConstants.GALLERY_SIZE_PATH + picUrl;
	}
	
	
}
